package com.gomoku.backend.consumer;

import java.time.LocalDateTime;

public class GameMove { //这个功能是在 写完对战之后在加的，不然思考太多，容易乱
    private final int row;       // 行号
    private final int col;      // 列号
    private final int player;   // 玩家编号（1=黑，2=白）
    private final LocalDateTime timestamp; // 落子时间
    private boolean editable;   // 是否可悔棋

    // 构造函数
    public GameMove(int row, int col, int player) {
        this.row = row;
        this.col = col;
        this.player = player;
        this.timestamp = LocalDateTime.now();
        this.editable = true; // 默认可悔棋
    }
}
